3 Author: Andrés Mejía-Posada
4 (http://blogaritmo.factorcomun.org)
28 #define D(x) cout << #x " is " << x << endl
34 bool solvable(double d
, int r
){
37 for (double pivot
= h
[0] + d
; r
--; pivot
= h
[i
] + d
){
39 while (i
< n
&& h
[i
] <= pivot
+ d
){
51 for (cin
>> C
; C
--; ){
54 for (int i
=0; i
<n
; ++i
)
58 int low
= 0, high
= h
[n
-1] - h
[0];
61 int mid
= (low
+high
)/2;
62 if (solvable(mid
/2.0, r
)){
69 printf("%.1lf\n", low
/2.0);